Optimal. Leaf size=259 \[ -\frac{i 2^{-n-3} e^{-\frac{2 i a}{b}} \sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (-\frac{i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \text{Gamma}\left (n+1,-\frac{2 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c \sqrt{1-c^2 x^2}}+\frac{i 2^{-n-3} e^{\frac{2 i a}{b}} \sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (\frac{i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \text{Gamma}\left (n+1,\frac{2 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c \sqrt{1-c^2 x^2}}+\frac{\sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{n+1}}{2 b c (n+1) \sqrt{1-c^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.292758, antiderivative size = 259, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.192, Rules used = {4663, 4661, 3312, 3307, 2181} \[ -\frac{i 2^{-n-3} e^{-\frac{2 i a}{b}} \sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (-\frac{i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \text{Gamma}\left (n+1,-\frac{2 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c \sqrt{1-c^2 x^2}}+\frac{i 2^{-n-3} e^{\frac{2 i a}{b}} \sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (\frac{i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \text{Gamma}\left (n+1,\frac{2 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c \sqrt{1-c^2 x^2}}+\frac{\sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{n+1}}{2 b c (n+1) \sqrt{1-c^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4663
Rule 4661
Rule 3312
Rule 3307
Rule 2181
Rubi steps
\begin{align*} \int \sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \, dx &=\frac{\sqrt{d-c^2 d x^2} \int \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^n \, dx}{\sqrt{1-c^2 x^2}}\\ &=\frac{\sqrt{d-c^2 d x^2} \operatorname{Subst}\left (\int (a+b x)^n \cos ^2(x) \, dx,x,\sin ^{-1}(c x)\right )}{c \sqrt{1-c^2 x^2}}\\ &=\frac{\sqrt{d-c^2 d x^2} \operatorname{Subst}\left (\int \left (\frac{1}{2} (a+b x)^n+\frac{1}{2} (a+b x)^n \cos (2 x)\right ) \, dx,x,\sin ^{-1}(c x)\right )}{c \sqrt{1-c^2 x^2}}\\ &=\frac{\sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{1+n}}{2 b c (1+n) \sqrt{1-c^2 x^2}}+\frac{\sqrt{d-c^2 d x^2} \operatorname{Subst}\left (\int (a+b x)^n \cos (2 x) \, dx,x,\sin ^{-1}(c x)\right )}{2 c \sqrt{1-c^2 x^2}}\\ &=\frac{\sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{1+n}}{2 b c (1+n) \sqrt{1-c^2 x^2}}+\frac{\sqrt{d-c^2 d x^2} \operatorname{Subst}\left (\int e^{-2 i x} (a+b x)^n \, dx,x,\sin ^{-1}(c x)\right )}{4 c \sqrt{1-c^2 x^2}}+\frac{\sqrt{d-c^2 d x^2} \operatorname{Subst}\left (\int e^{2 i x} (a+b x)^n \, dx,x,\sin ^{-1}(c x)\right )}{4 c \sqrt{1-c^2 x^2}}\\ &=\frac{\sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{1+n}}{2 b c (1+n) \sqrt{1-c^2 x^2}}-\frac{i 2^{-3-n} e^{-\frac{2 i a}{b}} \sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (-\frac{i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \Gamma \left (1+n,-\frac{2 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c \sqrt{1-c^2 x^2}}+\frac{i 2^{-3-n} e^{\frac{2 i a}{b}} \sqrt{d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (\frac{i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \Gamma \left (1+n,\frac{2 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c \sqrt{1-c^2 x^2}}\\ \end{align*}
Mathematica [A] time = 0.752975, size = 182, normalized size = 0.7 \[ \frac{d \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (-i 2^{-n} e^{-\frac{2 i a}{b}} \left (-\frac{i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \text{Gamma}\left (n+1,-\frac{2 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )+i 2^{-n} e^{\frac{2 i a}{b}} \left (\frac{i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \text{Gamma}\left (n+1,\frac{2 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )+\frac{4 a+4 b \sin ^{-1}(c x)}{b n+b}\right )}{8 c \sqrt{d \left (1-c^2 x^2\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.21, size = 0, normalized size = 0. \begin{align*} \int \sqrt{-{c}^{2}d{x}^{2}+d} \left ( a+b\arcsin \left ( cx \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{-c^{2} d x^{2} + d}{\left (b \arcsin \left (c x\right ) + a\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\sqrt{-c^{2} d x^{2} + d}{\left (b \arcsin \left (c x\right ) + a\right )}^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{- d \left (c x - 1\right ) \left (c x + 1\right )} \left (a + b \operatorname{asin}{\left (c x \right )}\right )^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{-c^{2} d x^{2} + d}{\left (b \arcsin \left (c x\right ) + a\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]